<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <title>Myhighst.com</title>
        <style type="text/css">
            body {color:#194e84;margin:0;padding:0;}
            h1 {margin:0;padding:0;}
            #content_container{	overflow:hidden;background:#eee;}
            #main_container {overflow:hidden;margin:0 auto;width:1000px;}
            #column_left {float:left;width:250px;background:#ccc;}
            #column_right {margin-left:260px;height:960px;}
            #topbar {float:right;text-align:right;width:600px;line-height:20px;height:20px;font-size:small;background:#ccc;}
            #header_container {overflow:hidden;background:#ccc;}
            #header {margin-top:5px;margin-bottom:10px;margin-left:10px;}
        </style>
    </head>
    <body>
        <div id="main_container">
            <div id="header_container">
                <div id="topbar"><a href="#">Login</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#">Help</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#">Contact us</a></div>
                <div id="header"><h1>Myhighst</h1></div>
                <div id="free_ad_post"><a href="/item/add/"><img src="<?php echo current_theme_url(); ?>images/post_free_add.jpg" /></a></div>
                <div id="search_bar"><form action="search.php"><input type="text" name="s" value="Search Here..." /><input type="submit" name="submit" value="Search" /></form></div>
            </div>
            <div id="content_container">
                <div id="column_left"><div style="height:300px;padding:5px;">
                        
                        <?php
                        $items = view::newInstance()->_get('main_categories');
                        if(count($items)>0){
                            echo '<ul>';
                         }
                        foreach ($items as $key => $value) {
                        ?> 
                        <li class="category_item"><a href="<?php echo site_url().$value['slug']; ?>"><?php echo $value['name']; ?></a></li>
                            <?php
                        }
                        if(count($items)>0){
                            echo '</ul>';
                         }
                        ?>
                    </div></div>
                <div id="column_right">This is Single Ad Page</div>
            </div>
        </div>
        
    </body>
</html>
